@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './element-variables.scss';

.el-select .el-input.is-focus .el-input__inner, .el-select .el-input__inner:focus {
  border-color: #000000 !important;
}
input {
  padding-left: 4px !important;
}
.el-input--prefix .el-input__inner {
  padding-left: 30px !important;
}
.el-table .el-table__header-wrapper th {
  color: #4d4d4d !important;
}
.el-table--enable-row-transition .el-table__body td {
  transition: none 0s !important;
}
.el-tabs--border-card > .el-tabs__header .el-tabs__item {
  transition: none 0s !important;
}

/*
 * =================================================================================
 *  Element UI Message 全局样式美化
 *  风格：现代、简洁、直观的顶部通知条
 * =================================================================================
 */

/* 1. 整体容器定位与基本样式 */
.el-message {
  /* 定位到右上角，可根据喜好调整 top 和 right 的值 */
  //top: 30px !important;
  //right: 30px !important;
  //left: auto !important; /* 取消 Element 默认的 left: 50% */
  //transform: none !important; /* 取消 Element 默认的 transform: translateX(-50%) */

  /* 基础样式 */
  background-color: #fff !important;
  border-radius: 6px !important;
  padding: 12px 18px !important; /* 调整内边距 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important; /* 使用更柔和的阴影 */
  border: none !important; /* 移除默认边框 */

  /* 关键：设置彩色边框的宽度和默认颜色 */
  border-left-width: 5px !important;
  border-left-style: solid !important;
}

/* 2. 根据不同类型设置左边框颜色 */
.el-message--success {
  border-left-color: #67c23a !important; /* 成功 - 绿色 */
}
.el-message--error {
  border-left-color: #f56c6c !important; /* 错误 - 红色 */
}
.el-message--warning {
  border-left-color: #e6a23c !important; /* 警告 - 黄色 */
}
.el-message--info {
  border-left-color: #909399 !important; /* 信息 - 灰色 */
}

/* 3. 隐藏默认的类型图标 */
.el-message .el-message__icon,
.el-message .el-icon-success,
.el-message .el-icon-error,
.el-message .el-icon-warning,
.el-message .el-icon-info {
  //display: none !important;
}

/* 4. 调整文字内容的样式 */
.el-message p {
  /* 因为隐藏了图标，所以不需要为图标留出左边距 */
  padding-left: 0 !important;
  color: #303133 !important; /* 设置更清晰的文字颜色 */
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* 5. 关闭按钮样式 (可选，如果使用了 closable: true) */
.el-message__closeBtn {
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #909399 !important;
}
.el-message__closeBtn:hover {
  color: #303133 !important;
}
/*
 * =================================================================================
 *  Element UI Message 全局样式美化
 *  风格：现代、简洁、直观的顶部通知条
 * =================================================================================
 */





#nprogress .bar {
  background: #d8151d !important;
}
/*
 * =================================================================================
 *  Element UI Menu 菜单动画优化
 *  目标：禁用 el-menu 的展开/折叠动画，实现瞬间响应。
 * =================================================================================
 */

.el-zoom-in-top-enter-active, .el-zoom-in-top-leave-active, .collapse-transition {
  transition: none !important
}
/* 辅助：针对菜单展开/折叠的箭头图标 */
/* 将其旋转动画禁用，使其瞬间变化 */
.el-submenu__icon-arrow,.el-menu-item, .el-submenu__title {
  transition: none 0s !important;
}
.submenu-title-noDropdown {
  display: flex;
  align-items: center;
}
.el-table__body tr.current-row > td {
  background-color: #B3B3B3 !important;
}
.el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
  background-color: #ffffff !important;
  padding: 0px 0px !important;
  height: 30px !important;
}
.el-table th, .el-table td {
 padding: 4px 0 !important;
}
.el-button {
border-radius: 0px !important;
font-size: 12px !important;
}
.el-checkbox__label {
font-size: 12px !important;
}
.el-checkbox {
  margin-bottom: 0px !important;
}
input , select{
  height: 20px;
  border: 1px solid #ccc;
  padding: 2px;
  border-radius: 2px;
}
.el-radio__label {
  font-size: 12px !important;
}
.el-tabs__item.is-active {
  font-weight: 700 !important;
}
.el-form-item {
  margin-bottom: 0px !important;
}

.el-tabs__item, .el-form-item__label {
  font-size: 12px !important;
  font-weight: normal !important;
}
.el-submenu__title , .el-menu-item  {
  font-size: 12px !important;
  color: #4D4C4C;
  height: 32px !important;
  line-height: 32px !important;
}
#app .sidebar-container .theme-dark .nest-menu .el-submenu > .el-submenu__title, #app .sidebar-container .theme-dark .el-submenu .el-menu-item.is-active, {
  background-color: #ffffff !important;
  border-left: 6px solid $--color-primary !important;
  font-weight: 700 !important;
}
#app .sidebar-container .el-menu-item.is-active {
  background-color: #ffffff !important;
  border-left: 6px solid $--color-primary !important;
  font-weight: 700 !important;
}
.el-submenu__title {
display: flex;
align-items: center;
}
svg, img, h1 {
display: inline !important;
}
.app-container {
//padding: 20px;
background-color: white;
}

body {
height: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
font-weight: 700;
}

html {
height: 100%;
box-sizing: border-box;
}

#app {
height: 100%;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

.no-padding {
padding: 0px !important;
}

.padding-content {
padding: 4px 0;
}

a:focus,
a:active {
outline: none;
}

a,
a:focus,
a:hover {
cursor: pointer;
color: inherit;
text-decoration: none;
}

div:focus {
outline: none;
}

.fr {
float: right;
}

.fl {
float: left;
}

.pr-5 {
padding-right: 5px;
}

.pl-5 {
padding-left: 5px;
}

.block {
display: block;
}

.pointer {
cursor: pointer;
}

.inlineBlock {
display: block;
}

.clearfix {
&:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
}

aside {
background: #eef1f6;
padding: 8px 24px;
margin-bottom: 20px;
border-radius: 2px;
display: block;
line-height: 32px;
font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
color: #2c3e50;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

a {
color: #337ab7;
cursor: pointer;

&:hover {
  color: rgb(32, 160, 255);
}
}
}

//main-container全局样式
.app-container {
padding: 20px;
}

.components-container {
margin: 30px 50px;
position: relative;
}

.pagination-container {
margin-top: 30px;
}

.text-center {
text-align: center
}

.sub-navbar {
height: 50px;
line-height: 50px;
position: relative;
width: 100%;
text-align: right;
padding-right: 20px;
transition: 600ms ease position;
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

.subtitle {
font-size: 20px;
color: #fff;
}

&.draft {
background: #d0d0d0;
}

&.deleted {
background: #d0d0d0;
}
}

.link-type,
.link-type:focus {
color: #337ab7;
cursor: pointer;

&:hover {
color: rgb(32, 160, 255);
}
}

.filter-container {
padding-bottom: 10px;

.filter-item {
display: inline-block;
vertical-align: middle;
margin-bottom: 10px;
}
}

//refine vue-multiselect plugin
.multiselect {
line-height: 16px;
}

.multiselect--active {
z-index: 1000 !important;
}
